//
// ABackground.hh for bomberman in /home/lefebv_w//workspace/cpp/bomberman/googleCode/level
// 
// Made by damien lefebvre
// Login   <lefebv_w@epitech.net>
// 
// Started on  Sat May 11 17:42:04 2013 damien lefebvre
// Last update Wed May 29 02:52:14 2013 damien lefebvre
//

#ifndef		__ABACKGROUND_HH__
#define		__ABACKGROUND_HH__

#include	<iostream>

#include	<GL/gl.h>
#include	<GL/glu.h>

#include	<Image.hpp>

#include	"AObject.hh"
#include	"Vector3f.hh"

class		ABackground : public AObject
{
public :
  ABackground(Vector3f const & position, float size, std::string const & texPath)
    : AObject(position), m_texPath(texPath), m_size(size)
  {}

  void		draw(void)
  {
         glCallList(m_displaylist);
  }

protected :
  std::string	m_texPath;
  float		m_size;
  gdl::Image	m_tex;
  GLuint	m_displaylist;

  static void  	drawCube(Vector3f const & position, float size);
  static void  	drawRectangle(Vector3f const & position, float size);
};

#endif
